package com.battle.service;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 【描 述】：
 * 【环 境】：J2SE 17
 * 【详 细】：
 *
 * @author 李松林
 * @version v1.0 2024/4/29 新建
 * @since 2024/4/29
 */
@RefreshScope
@EnableScheduling
@EnableAspectJAutoProxy
@EntityScan("com.battle.pojo.entity")
@MapperScan(basePackages = {"com.battle.service.mapper", "com.gitee.sunchenbin.mybatis.actable.dao.*"})
@SpringBootApplication(scanBasePackages = {"com.battle.*", "nirvana.core.*", "com.gitee.sunchenbin.mybatis.actable.manager.*"})
public class Application {

    public static void main(String[] args) {
        try {
            SpringApplication.run(Application.class, args);
        } catch (Throwable  e) {
            throw new RuntimeException(e);
        }
    }
}
